using ContactPrinter.Model.Interfaces;

namespace ContactPrinter.Model
{
    public class PhoneNumber : CategorizedAttributeBase, IPhoneNumber
    {
        public PhoneNumber(string phoneNumber, Category category)
        {
            Number = phoneNumber;
            Type = category;
        }

        #region Implementation of IPhoneNumber

        public string Number { get; set; }

        #endregion

        public override string ToString()
        {
            return string.Format("{0}: {1}", Type, Number);
        }
    }
}